package com.feiyuan.generator.service;

import com.feiyuan.generator.pojo.dto.GeneratorCodeDTO;

import java.io.IOException;

/**
 * @ClassName TableListService
 * @Description TODO
 * @Author Xupf xupengfei131276@126.com
 * @Date 2021/9/30 9:45
 * @Version 1.0
 */
public interface TableListService {
    /**
     * 查询所有表信息
     * @return
     * @param tableName
     */
    Object listTables(String tableName);

    /**
     * 生成代码
     * @param generatorCode
     * @return
     */
    byte[] generatorCode(GeneratorCodeDTO generatorCode) throws IOException;

    /**
     * 生成代码，由于压缩文件的工具类出现了问题，暂时用此方法
     * @param generatorCode
     * @return
     * @throws IOException
     */
    Map<String, Object> generatorCode1(GeneratorCodeDTO generatorCode) throws IOException;
}
